<%--
  Created by IntelliJ IDEA.
  User: 栋
  Date: 2022/11/14
  Time: 19:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <%@include file="/pages/base/base.jsp"%>
</head>
<body>
    <div class="container">

        <div class="loginContent">
             <div class="errorMsg">
                 ${ empty requestScope.msg ? "请输入手机号和密码":requestScope.msg }
             </div>
            <form action="userServlet" method="post">
                <input type="hidden" name="action" value="login">
                <div class="row">
                    <div class="col-25">
                        <label for="phoneNumber">手机号</label>
                    </div>
                    <div class="col-75">
                        <input type="text" required id="phoneNumber" name="phoneNumber" placeholder="请输入手机号" value=${requestScope.phoneNumber}>
                    </div>
                </div>
                <div class="row">
                    <div class="col-25">
                        <label for="pwd">密码</label>
                    </div>
                    <div class="col-75">
                        <input type="password" required id="pwd" name="pwd" placeholder="请输入密码">
                    </div>
                </div>
                <div class="row">
                    <input type="submit" value="登录">
                </div>
            </form>
            <a href="pages/user/register.jsp">没有账号？立即注册</a>
        </div>

    </div>
</body>
</html>
